import request from '@/utils/request'

export const getDepartmentList = () => request.get('/company/department')

// 获取部门负责人
export const getManagerList = () => request.get('/sys/user/simple')

// 新增
export const addDepartAPI = data => request.post('/company/department', data)

// 删除
export const delDepartAPI = id => request.delete(`/company/department/${id}`)

// 获取详情
export const getEditDepartAPI = id => request.get(`/company/department/${id}`)

// 修改详情
export const getUpdateDepart = data => request.put(`/company/department/${data.id}`, data)
